package cn.bitkit.base.constants;

import lombok.AllArgsConstructor;

/**
 * @author changbo
 */
@AllArgsConstructor
public enum BasicApiCode {
    /**
     * 请求成功
     */
	SUCCESS(1000, "请求成功"),
	FAIL(1001, "请求失败"),
    NO_LOGIN(1002, "用户未登录"),
    NO_AUTH(1003, "用户未授权/授权已过期"),
	ERROR_PARAM(1004, "请求参数错误"),
	ERROR_API(1005, "请求服务错误"),
    ERROR_SIGN(1006, "请求签名错误"),
    ERROR_CAPTCHA(1007, "请求验证码错误"),
    ERROR_DATA(1008, "请求数据错误"),
    ERROR_EMPTY_DATA(1009, "请求数据为空"),
    ;
    public final int code;
    public final String desc;

}
